Skip to main content

Website Setup Local

Installation of Node.js

  • Download the Node.js Installer for Windows from the official website: (You can download latest version.) https://nodejs.org/en/download

  • Choose the LTS (Long-Term Support) version for better stability.

  • Run the installer and follow the setup wizard:

    • Accept license agreement
    • Choose installation folder
    • Select default options
    • Install Node.js and npm (Node Package Manager)
  • Once installation is complete, restart your terminal or Command Prompt.

Verify Node.js Installation

  • To check installed Node.js version:
    node -v

Website Extraction

  • First you have to extract the nlytical.zip then you will get zip files.

    • Nlytical-web.zip
  • Create nlytical_web folder wherever you want.

    • for example C:/nlytical_web or D:/nlytical_web.
  • Extract Nlytical-web.zip to C:/nlytical_web or D:/nlytical_web.

  • Here you will get all the files of website.

Configure Environment Variables

  • Edit the .env file in the root directory of your project. This step is mandatory to ensure the application can connect to your server.

  • Update the following lines in the .env file with your actual server and database credentials:

    NEXT_PUBLIC_API_BASE_URL=http://localhost:8000/api

Server Starting

  • After editing the .env file, you can start development server.

  • Install dependencies

      npm install
  • Start development server

      npm run dev
  • Every time you change the code you have to restart the server.

  • you have to open your browser and go to http://localhost:3000 to see the website.